﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Cloud.Core.Data;
using Cloud.Dto;

namespace Cloud.Service.Role
{
    public interface IRoleService
    {
        RoleDto Info { get; set; }

        Task Delete();
        Task<PageList<RoleDto>> GetRolePageListAsync(int pageIndex, int pageSze, string roleName = null);
        IRoleService Init(int roleId, int accountId = 0);
        Task<List<int>> GetRoleModuleIdList(int roleId);
        Task RoleModuleSave(int roleId, List<int> moduleIdList);
    }
}